using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter11
{
	/// <summary>
	/// Example03: Angular Momentum of a Particle in Circular Motion
	/// A particle moves in the xy plane in a circular 
	/// path of radius r, as shown in figure 11.5. Find the 
	/// magnitude and direction of its angular momentum relative 
	/// to O when its linear velocity is v.
	/// L = mvr
	/// </summary>
	public class Example03
	{
		public Example03()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Mass m = new L.Mass();
			m.kg = 2.0;
			L.Velocity v = new L.Velocity();
			v.Y = 3.0;
			L.Momentum p = new L.Momentum(m,v);
			L.Position r = new L.Position();
			r.X = 4.0;
			L.AngularMomentum l = new L.AngularMomentum(r,p);
			result+=Convert.ToString(l.X)+"\r\n";
			result+=Convert.ToString(l.Y)+"\r\n";
			result+=Convert.ToString(l.Z)+"\r\n";
		}
	}
}
